TEMPLATE = app
CONFIG +=  c++11
CONFIG -= app_bundle
CONFIG -= qt

QMAKE_CFLAGS += -DWITH_DOM
QMAKE_CFLAGS += -DWITH_OPENSSL

SOURCES += \
    comm/onvif_comm.c \
    comm/onvif_dump.c \
    onvif/dom.c \
    onvif/duration.c \
    onvif/mecevp.c \
    onvif/smdevp.c \
    onvif/soapC.c \
    onvif/soapClient.c \
    onvif/stdsoap2.c \
    onvif/threads.c \
    onvif/wsaapi.c \
    onvif/wsseapi.c \
    main.cpp

HEADERS += \
    comm/onvif_comm.h \
    comm/onvif_dump.h \
    onvif/DeviceBinding.nsmap \
    onvif/duration.h \
    onvif/mecevp.h \
    onvif/MediaBinding.nsmap \
    onvif/RemoteDiscoveryBinding.nsmap \
    onvif/smdevp.h \
    onvif/soapH.h \
    onvif/soapStub.h \
    onvif/stdsoap2.h \
    onvif/threads.h \
    onvif/wsaapi.h \
    onvif/wsdd.nsmap \
    onvif/wsseapi.h \
    openssl-linux-pc/include/openssl/aes.h \
    openssl-linux-pc/include/openssl/asn1_mac.h \
    openssl-linux-pc/include/openssl/asn1.h \
    openssl-linux-pc/include/openssl/asn1t.h \
    openssl-linux-pc/include/openssl/bio.h \
    openssl-linux-pc/include/openssl/blowfish.h \
    openssl-linux-pc/include/openssl/bn.h \
    openssl-linux-pc/include/openssl/buffer.h \
    openssl-linux-pc/include/openssl/camellia.h \
    openssl-linux-pc/include/openssl/cast.h \
    openssl-linux-pc/include/openssl/cmac.h \
    openssl-linux-pc/include/openssl/cms.h \
    openssl-linux-pc/include/openssl/comp.h \
    openssl-linux-pc/include/openssl/conf_api.h \
    openssl-linux-pc/include/openssl/conf.h \
    openssl-linux-pc/include/openssl/crypto.h \
    openssl-linux-pc/include/openssl/des_old.h \
    openssl-linux-pc/include/openssl/des.h \
    openssl-linux-pc/include/openssl/dh.h \
    openssl-linux-pc/include/openssl/dsa.h \
    openssl-linux-pc/include/openssl/dso.h \
    openssl-linux-pc/include/openssl/dtls1.h \
    openssl-linux-pc/include/openssl/e_os2.h \
    openssl-linux-pc/include/openssl/ebcdic.h \
    openssl-linux-pc/include/openssl/ec.h \
    openssl-linux-pc/include/openssl/ecdh.h \
    openssl-linux-pc/include/openssl/ecdsa.h \
    openssl-linux-pc/include/openssl/engine.h \
    openssl-linux-pc/include/openssl/err.h \
    openssl-linux-pc/include/openssl/evp.h \
    openssl-linux-pc/include/openssl/hmac.h \
    openssl-linux-pc/include/openssl/idea.h \
    openssl-linux-pc/include/openssl/krb5_asn.h \
    openssl-linux-pc/include/openssl/kssl.h \
    openssl-linux-pc/include/openssl/lhash.h \
    openssl-linux-pc/include/openssl/md4.h \
    openssl-linux-pc/include/openssl/md5.h \
    openssl-linux-pc/include/openssl/mdc2.h \
    openssl-linux-pc/include/openssl/modes.h \
    openssl-linux-pc/include/openssl/obj_mac.h \
    openssl-linux-pc/include/openssl/objects.h \
    openssl-linux-pc/include/openssl/ocsp.h \
    openssl-linux-pc/include/openssl/opensslconf.h \
    openssl-linux-pc/include/openssl/opensslv.h \
    openssl-linux-pc/include/openssl/ossl_typ.h \
    openssl-linux-pc/include/openssl/pem.h \
    openssl-linux-pc/include/openssl/pem2.h \
    openssl-linux-pc/include/openssl/pkcs7.h \
    openssl-linux-pc/include/openssl/pkcs12.h \
    openssl-linux-pc/include/openssl/pqueue.h \
    openssl-linux-pc/include/openssl/rand.h \
    openssl-linux-pc/include/openssl/rc2.h \
    openssl-linux-pc/include/openssl/rc4.h \
    openssl-linux-pc/include/openssl/ripemd.h \
    openssl-linux-pc/include/openssl/rsa.h \
    openssl-linux-pc/include/openssl/safestack.h \
    openssl-linux-pc/include/openssl/seed.h \
    openssl-linux-pc/include/openssl/sha.h \
    openssl-linux-pc/include/openssl/srp.h \
    openssl-linux-pc/include/openssl/srtp.h \
    openssl-linux-pc/include/openssl/ssl.h \
    openssl-linux-pc/include/openssl/ssl2.h \
    openssl-linux-pc/include/openssl/ssl3.h \
    openssl-linux-pc/include/openssl/ssl23.h \
    openssl-linux-pc/include/openssl/stack.h \
    openssl-linux-pc/include/openssl/symhacks.h \
    openssl-linux-pc/include/openssl/tls1.h \
    openssl-linux-pc/include/openssl/ts.h \
    openssl-linux-pc/include/openssl/txt_db.h \
    openssl-linux-pc/include/openssl/ui_compat.h \
    openssl-linux-pc/include/openssl/ui.h \
    openssl-linux-pc/include/openssl/whrlpool.h \
    openssl-linux-pc/include/openssl/x509_vfy.h \
    openssl-linux-pc/include/openssl/x509.h \
    openssl-linux-pc/include/openssl/x509v3.h \
    onvif/onvif.h




INCLUDEPATH += comm
INCLUDEPATH += onvif
INCLUDEPATH += ffmpeg-linux-pc/include
INCLUDEPATH += openssl-linux-pc/include

#libssl.a必须先于libcrypto.a
LIBS +=     $$PWD/openssl-linux-pc/lib/libssl.a     \
            $$PWD/openssl-linux-pc/lib/libcrypto.a

LIBS += -ldl

LIBS += $$PWD/ffmpeg-linux-pc/lib/libavfilter.a            \
          $$PWD/ffmpeg-linux-pc/lib/libswscale.a             \
          $$PWD/ffmpeg-linux-pc/lib/libavdevice.a            \
          $$PWD/ffmpeg-linux-pc/lib/libavformat.a            \
          $$PWD/ffmpeg-linux-pc/lib/libavcodec.a             \
          $$PWD/ffmpeg-linux-pc/lib/libavutil.a              \
          $$PWD/ffmpeg-linux-pc/lib/libswresample.a           \
          $$PWD/ffmpeg-linux-pc/lib/libswresample.a           \
         $$PWD/ffmpeg-linux-pc/lib/libswresample.a



LIBS += -lm
LIBS += -lrt
LIBS += -lz
LIBS += -lpthread

